import { useModel } from 'umi';
import defaultSettings from '../../../config/defaultSettings'

const Index = () => {
  const { initialState } = useModel('@@initialState')

  return <>
    <h1>欢迎登录 <strong>{ defaultSettings.title }</strong> 后台管理系统</h1>
    <p>您的身份是：<strong>{ initialState?.currentUser.roleName }</strong></p>
  </>;
};

export default Index;
